﻿using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;


/// <summary>
/// 
/// </summary>
public static class PrimitiveTypeExtensions
{
    /// <summary>
    /// 获取所有PrimitiveType枚举值
    /// </summary>
    public static IEnumerable<PrimitiveType> GetAllValues(this PrimitiveType primitiveType)
    {
        return Enum.GetValues(typeof(PrimitiveType)).Cast<PrimitiveType>();
    }

    /// <summary>
    /// 创建对应的池对象名称
    /// </summary>
    public static string GetPooledObjectName(this PrimitiveType primitiveType)
    {
        return $"{primitiveType}_Pooled";
    }
}